<?php

class Commande
{
    /**
     * @var integer
     */
    private $idCommande;
    
    /**
     * @var string
     */
    private $libelleProduit;
    
    /**
     * @var integer
     */
    private $quantite;
    
    /**
     * @var Zend_Date
     */
    private $dateLivraison;
    
    /**
     * @var Zend_Date
     */
    private $dateDepart;
    
    /**
     * @var Zend_Date
     */
    private $dateArrivee;
    
    /**
     * @var Contrat
     */
    private $contrat;
    
    /**
     * @var boolean
     */
    private $expedie = false;
    
    /**
     * @var boolean
     */
    private $retard = false;
    
    /**
     * @var float
     */
    private $prix = 0;
    
    function Commande($id, $libelle, $qte, $date_livraison, $contrat)
    {
        $this->idCommande = $id;
        $this->libelleProduit = $libelle;
        $this->quantite = $qte;
        $this->dateLivraison = $date_livraison;
        $this->contrat = $contrat;
    }
    
    /**
     * 
     * @return integer
     */
    public function getIdCommande() 
    {
        return $this->idCommande;
    }

    /**
     * 
     * @param integer $idCommande
     */
    public function setIdCommande($idCommande) 
    {
        $this->idCommande = $idCommande;
    }

    /**
     * 
     * @return string
     */
    public function getLibelleProduit() 
    {
        return $this->libelleProduit;
    }

    /**
     * 
     * @param string $libelleProduit
     */
    public function setLibelleProduit($libelleProduit) 
    {
        $this->libelleProduit = $libelleProduit;
    }

    /**
     * 
     * @return integer
     */
    public function getQuantite() 
    {
        return $this->quantite;
    }

    /**
     * 
     * @param integer $quantite
     */
    public function setQuantite($quantite) 
    {
        $this->quantite = $quantite;
    }

    /**
     * 
     * @return Zend_Date
     */
    public function getDateLivraison() 
    {
        return $this->dateLivraison;
    }

    /**
     * 
     * @param Zend_Date $dateLivraison
     */
    public function setDateLivraison($dateLivraison) 
    {
        $this->dateLivraison = $dateLivraison;
    }

    /**
     * 
     * @return Contrat
     */
    public function getIdContrat() 
    {
        return $this->idContrat;
    }

    /**
     * 
     * @param Contrat $contrat
     */
    public function setIdContrat($contrat) 
    {
        $this->idContrat = $contrat;
    }
    
    /**
     * 
     * @return Contrat
     */
    public function getContrat() {
        return $this->contrat;
    }

    /**
     * 
     * @param Contrat $contrat
     */
    public function setContrat($contrat) {
        $this->contrat = $contrat;
    }

    public function getExpedie() {
        return $this->expedie;
    }

    public function setExpedie($expedie) {
        $this->expedie = $expedie;
    }

    public function getPrix() {
        return $this->prix;
    }

    public function setPrix($prix) {
        $this->prix = $prix;
    }
    
    public function getDateDepart() {
        return $this->dateDepart;
    }

    public function setDateDepart($dateDepart) {
        $this->dateDepart = $dateDepart;
    }

    public function getDateArrivee() {
        return $this->dateArrivee;
    }

    public function setDateArrivee($dateArrivee) {
        $this->dateArrivee = $dateArrivee;
    }
    
    public function getRetard() {
        return $this->retard;
    }

    public function setRetard($retard) {
        $this->retard = $retard;
    }


}